static void _httpStat(http_entity_t *http)
{
    /*
     * 显示队列名称、队列长度、订阅者
     */
    dictTable *d = factoryGetQueuesTable();

    sprintf(http->body, "TOTAL %d QUEUES:\n\n", d->used);
    http_append_to_buffer(http, http->body);

    int i;
    dictNode *t, *node = NULL;
    queue *q;
    subscriber *s;

    for (i = 0; i < d->size; i++) {
        node = d->ht[i];
        while (node != NULL) {
            q = node->val;
            sprintf(http->body, "[queue]:%s\n[length]:%d\n", q->name, queueSize(q));
            http_append_to_buffer(http, http->body);
            s = q->suber;
            while (s != NULL) {
                sprintf(http->body, "[subscriber]:%s %d %d %ld\n", s->url, s->number, s->interval, s->tm);
                http_append_to_buffer(http, http->body);
                s = s->next;
            }
            http_append_to_buffer(http, "\n");
            node = node->next;
        }
    }

    http_set_count(http, d->used);
}
